package com.jxc.jxc01.grc.service.impl;

import com.jxc.jxc01.grc.dao.IProcurementDao;
import com.jxc.jxc01.grc.dao.impl.ProcurementDaoImpl;
import com.jxc.jxc01.grc.entity.Procurement;
import com.jxc.jxc01.grc.service.IProcurementService;


import java.util.List;

public class ProcurementSreviceImpl implements IProcurementService {
    IProcurementDao dao = new ProcurementDaoImpl();
    @Override
    public int addProcurement(Procurement procurement) {
        return dao.addProcurement(procurement);
    }

    @Override
    public int deleteProcurement(int id) {
        return dao.deleteProcurement(id);
    }

    @Override
    public int reviseProcurement(Procurement procurement) {
        return dao.reviseProcurement(procurement);
    }

    @Override
    public List<Procurement> queryProcurement() {
        return dao.queryProcurement();
    }

    @Override
    public int queryProcurementTotalCount() {
        return dao.queryProcurementTotalCount();
    }

    @Override
    public List<Procurement> queryProcurementBynano(int purchaseId) {
        return dao.queryProcurementBynano(purchaseId);
    }
}
